import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('file_tags')
export class FileTags {
  @PrimaryGeneratedColumn({
    name: 'id',
    type: 'int',
    comment: 'id',
  })
  id: number;

  @Column({
    name: 'file_id',
    type: 'int',
    default: 0,
    comment: '文件id',
  })
  fileId: number;

  @Column({
    name: 'tag_id',
    type: 'int',
    default: 0,
    comment: '标签id',
  })
  tagId: number;
}